package com.chenfubing.ps.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.chenfubing.ps.entity.Access;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chenfubing.ps.entity.pojo.ExportPojo;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author chenfubing
 * @since 2020-05-05
 */
public interface AccessMapper extends BaseMapper<Access> {

    Page<Access> getAccessPage(Page<Access> page);

    List<Access> getAccessList(@Param("startTime") LocalDateTime startTime,@Param("endTime") LocalDateTime endTime,@Param("license") String license);

    List<ExportPojo> getExportPojo();

    int selectCountOfAccess(@Param("date1") LocalDateTime date1,@Param("date2") LocalDateTime date2);

}
